package com.api.shopapi.service.impl;

import com.api.shopapi.entity.MedicationSchedulingNoonItem;
import com.api.shopapi.mapper.MedicationSchedulingNoonItemMapper;
import com.api.shopapi.service.MedicationSchedulingNoonItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("MedicationSchedulingNoonItemServiceImplOne")
public class MedicationSchedulingNoonItemServiceImpl implements MedicationSchedulingNoonItemService {

    @Autowired
    private MedicationSchedulingNoonItemMapper medicationSchedulingNoonItemMapper;


    @Override
    public int insert(MedicationSchedulingNoonItem medicationSchedulingNoonItem) {
        return medicationSchedulingNoonItemMapper.insert(medicationSchedulingNoonItem);
    }

    @Override
    public int updateByMedicationSchedulingNoonItemCode(MedicationSchedulingNoonItem medicationSchedulingNoonItem) {
        return medicationSchedulingNoonItemMapper.updateByMedicationSchedulingNoonItemCode(medicationSchedulingNoonItem);
    }

    @Override
    public int deleteByMedicationSchedulingNoonItemCode(String medicationSchedulingNoonItemCode) {
        return medicationSchedulingNoonItemMapper.deleteByMedicationSchedulingNoonItemCode(medicationSchedulingNoonItemCode);
    }

    @Override
    public MedicationSchedulingNoonItem getByMedicationSchedulingNoonItemCode(String medicationSchedulingNoonItemCode) {
        return medicationSchedulingNoonItemMapper.getByMedicationSchedulingNoonItemCode(medicationSchedulingNoonItemCode);
    }

    @Override
    public List<MedicationSchedulingNoonItem> getListByMedicationSchedulingNoonCode(String medicationSchedulingNoonCode) {
        return medicationSchedulingNoonItemMapper.getListByMedicationSchedulingNoonCode(medicationSchedulingNoonCode);
    }

    @Override
    public int deleteByMedicationSchedulingNoonCode(String medicationSchedulingNoonCode) {
        return medicationSchedulingNoonItemMapper.deleteByMedicationSchedulingNoonCode(medicationSchedulingNoonCode);
    }
}
